# encoding: utf-8
from openai import OpenAI

client = OpenAI(api_key="sk-自己申请一个", base_url="https://api.siliconflow.cn/v1")

response = client.chat.completions.create(
    model='alibaba/Qwen1.5-110B-Chat',
    messages=[
        {'role': 'user', 'content': "抛砖引玉是什么意思呀"}
    ],
    stream=True
)

for chunk in response:
    print(chunk.choices[0].delta.content, end='')
